{% extends "learning_logs/base.html" %}

{% block header %}
<h1>Topics</h1>
{% endblock header %}

{% block content %}

<ul>
	{% for topic in topics %}
	<li>
		<h3>
			<a href="{% url 'learning_logs:topic' topic.id %}">{{topic}}</a>
		</h3>
	</li>
	{% empty %}
	<h3>
		<li>没有Topics添加</li>
	</h3>
	{% endfor %}
</ul>

<h3>
	<a href="{% url 'learning_logs:new_topic' %}">Add a new topic</a>
</h3>

{% endblock content %}
